
public class CAR2 {
		public static void main(String[] args) {
			CAR motorcycle = new CAR();
			motorcycle.setCarName("摩托车");
			motorcycle.setUse("便捷方便");
			motorcycle.drive();

			CAR hand = new CAR();
			hand.setCarName("手扶拖拉机");
			hand.setUse("可以拉取货物");
			hand.drive();

			CAR compact = new CAR();
			compact.setCarName("小型汽车");
			compact.setUse("速度快");
			compact.drive();
		}

			
		}

	

